package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Setmeal;
import com.itheima.reggie.domain.SetmealDish;

import java.util.List;

public interface SetmealService {

    //分页查询
    Page<Setmeal> findByPage(String name, Integer pageNum, Integer pageSize);
    //保存套餐
    void save(Setmeal setmeal);
    //删除套餐
    void deleteByIds(List<String> ids);
    //停售
    void updateById(Integer status, List<String> ids);
    //回显套餐
    Setmeal findById(Long id);
    //修改
    void update(Setmeal setmeal);
    //app根据分类id和状态查询
    List<Setmeal> findList(Long categoryId, Integer status);
    //查询套餐菜品
    List<SetmealDish> findBySetmealId(Long setealId);

}
